home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Multimedia / Q-Z / VCR+(app+src).sit / Sources / doStuff.c < prev    next >
MacBinary  |  1993-03-16  |  4.3 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Mar 16 09:48:03 1993, modified Tue Mar 16 09:48:03 1993, creator Think C, type ASCII, 3726 bytes "doStuff.c" magic text fragment for file(1) cmd, 1st line "#include "VCRplus.h"", 2nd line "#define ScreenDepth(gdh)%09((*((*gdh)->gdPMap))->pixelSize)", 3rd line "#define dragscreenmargin 4 /*for dragging windows, leave this many pixels on all sides*/", 4th line "", 5th line "extern%09DialogPtr%09%09%09%09theDialog;", at 0xf0e 348 bytes resource magic text fragment for file(1) cmd, 1st line "#include "VCRplus.h"", 2nd line "#define ScreenDepth(gdh)%09((*((*gdh)->gdPMap))->pixelSize)", 3rd line "#define dragscreenmargin 4 /*for dragging windows, leave this many pixels on all sides*/", 4th line "", 5th line "extern%09DialogPtr%09%09%09%09theDialog;" default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 64 6f 53 74 75 66 | 66 2e 63 00 00 00 00 00 |..doStuf|f.c.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 0e 8e 00 | 00 01 5c a7 cb 99 23 a7 |........|..\...#.|
|00000060| cb 99 23 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..#.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 61 9c 00 00 |........|....a...|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 56 43 52 70 6c 75 |#include| "VCRplu|
|00000090| 73 2e 68 22 0d 23 64 65 | 66 69 6e 65 20 53 63 72 |s.h".#de|fine Scr|
|000000a0| 65 65 6e 44 65 70 74 68 | 28 67 64 68 29 09 28 28 |eenDepth|(gdh).((|
|000000b0| 2a 28 28 2a 67 64 68 29 | 2d 3e 67 64 50 4d 61 70 |*((*gdh)|->gdPMap|
|000000c0| 29 29 2d 3e 70 69 78 65 | 6c 53 69 7a 65 29 0d 23 |))->pixe|lSize).#|
|000000d0| 64 65 66 69 6e 65 20 64 | 72 61 67 73 63 72 65 65 |define d|ragscree|
|000000e0| 6e 6d 61 72 67 69 6e 20 | 34 20 2f 2a 66 6f 72 20 |nmargin |4 /*for |
|000000f0| 64 72 61 67 67 69 6e 67 | 20 77 69 6e 64 6f 77 73 |dragging| windows|
|00000100| 2c 20 6c 65 61 76 65 20 | 74 68 69 73 20 6d 61 6e |, leave |this man|
|00000110| 79 20 70 69 78 65 6c 73 | 20 6f 6e 20 61 6c 6c 20 |y pixels| on all |
|00000120| 73 69 64 65 73 2a 2f 0d | 0d 65 78 74 65 72 6e 09 |sides*/.|.extern.|
|00000130| 44 69 61 6c 6f 67 50 74 | 72 09 09 09 09 74 68 65 |DialogPt|r....the|
|00000140| 44 69 61 6c 6f 67 3b 0d | 65 78 74 65 72 6e 09 75 |Dialog;.|extern.u|
|00000150| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 09 09 09 6d |nsigned |long...m|
|00000160| 79 46 72 65 65 4d 65 6d | 3b 0d 0d 73 68 6f 72 74 |yFreeMem|;..short|
|00000170| 20 64 6f 44 6c 67 45 76 | 74 28 45 76 65 6e 74 52 | doDlgEv|t(EventR|
|00000180| 65 63 6f 72 64 20 2a 65 | 76 70 29 0d 7b 0d 09 09 |ecord *e|vp).{...|
|00000190| 44 69 61 6c 6f 67 50 74 | 72 09 09 09 09 77 68 69 |DialogPt|r....whi|
|000001a0| 63 68 44 6c 67 3b 0d 09 | 09 73 68 6f 72 74 09 09 |chDlg;..|.short..|
|000001b0| 09 09 69 74 65 6d 48 69 | 74 3b 0d 09 09 63 68 61 |..itemHi|t;...cha|
|000001c0| 72 09 09 09 09 09 74 68 | 65 4b 65 79 3b 0d 09 09 |r.....th|eKey;...|
|000001d0| 52 65 63 74 09 09 09 09 | 09 6d 79 50 61 6c 65 74 |Rect....|.myPalet|
|000001e0| 74 65 52 65 63 74 3b 0d | 09 09 50 6f 69 6e 74 09 |teRect;.|..Point.|
|000001f0| 09 09 09 09 77 68 69 63 | 68 43 6f 6c 6f 72 3b 0d |....whic|hColor;.|
|00000200| 0d 09 69 66 20 28 44 69 | 61 6c 6f 67 53 65 6c 65 |..if (Di|alogSele|
|00000210| 63 74 28 20 65 76 70 2c | 20 26 77 68 69 63 68 44 |ct( evp,| &whichD|
|00000220| 6c 67 2c 20 26 69 74 65 | 6d 48 69 74 20 29 20 3d |lg, &ite|mHit ) =|
|00000230| 3d 20 46 41 4c 53 45 20 | 29 0d 09 09 72 65 74 75 |= FALSE |)...retu|
|00000240| 72 6e 28 30 29 3b 09 09 | 09 09 09 09 2f 2f 09 6e |rn(0);..|....//.n|
|00000250| 6f 20 65 78 74 72 61 20 | 77 6f 72 6b 20 6e 65 65 |o extra |work nee|
|00000260| 64 65 64 20 2c 20 20 6a | 75 73 74 20 72 65 74 75 |ded , j|ust retu|
|00000270| 72 6e 0d 0d 09 69 66 20 | 28 20 65 76 70 2d 3e 77 |rn...if |( evp->w|
|00000280| 68 61 74 20 3d 3d 20 6b | 65 79 44 6f 77 6e 20 29 |hat == k|eyDown )|
|00000290| 0d 09 7b 0d 09 09 69 66 | 20 28 20 65 76 70 2d 3e |..{...if| ( evp->|
|000002a0| 6d 6f 64 69 66 69 65 72 | 73 20 26 20 63 6d 64 4b |modifier|s & cmdK|
|000002b0| 65 79 20 29 0d 09 09 7b | 09 2f 2a 63 6f 6d 6d 61 |ey )...{|./*comma|
|000002c0| 6e 64 20 6b 65 79 20 70 | 72 65 73 73 65 64 20 2a |nd key p|ressed *|
|000002d0| 2f 0d 09 09 09 74 68 65 | 4b 65 79 20 3d 20 20 65 |/....the|Key = e|
|000002e0| 76 70 2d 3e 6d 65 73 73 | 61 67 65 20 26 20 63 68 |vp->mess|age & ch|
|000002f0| 61 72 43 6f 64 65 4d 61 | 73 6b 3b 0d 09 09 09 73 |arCodeMa|sk;....s|
|00000300| 77 69 74 63 68 20 28 74 | 68 65 4b 65 79 29 0d 09 |witch (t|heKey)..|
|00000310| 09 09 7b 0d 09 09 09 09 | 63 61 73 65 20 27 43 27 |..{.....|case 'C'|
|00000320| 3a 09 09 09 09 09 09 2f | 2f 09 63 6f 70 79 0d 09 |:....../|/.copy..|
|00000330| 09 09 09 63 61 73 65 20 | 27 63 27 3a 0d 09 09 09 |...case |'c':....|
|00000340| 09 09 53 65 6c 49 54 65 | 78 74 28 74 68 65 44 69 |..SelITe|xt(theDi|
|00000350| 61 6c 6f 67 2c 20 28 28 | 44 69 61 6c 6f 67 50 65 |alog, ((|DialogPe|
|00000360| 65 6b 29 74 68 65 44 69 | 61 6c 6f 67 29 2d 3e 65 |ek)theDi|alog)->e|
|00000370| 64 69 74 46 69 65 6c 64 | 20 2b 31 2c 20 30 2c 20 |ditField| +1, 0, |
|00000380| 33 32 37 36 37 29 3b 09 | 2f 2f 09 73 65 6c 65 63 |32767);.|//.selec|
|00000390| 74 20 61 6c 6c 20 74 68 | 65 20 74 65 78 74 0d 09 |t all th|e text..|
|000003a0| 09 09 09 09 44 6c 67 43 | 6f 70 79 28 74 68 65 44 |....DlgC|opy(theD|
|000003b0| 69 61 6c 6f 67 29 3b 0d | 09 09 09 09 09 5a 65 72 |ialog);.|.....Zer|
|000003c0| 6f 53 63 72 61 70 28 29 | 3b 0d 09 09 09 09 09 54 |oScrap()|;......T|
|000003d0| 45 54 6f 53 63 72 61 70 | 28 29 3b 0d 09 09 09 09 |EToScrap|();.....|
|000003e0| 09 6d 79 46 72 65 65 4d | 65 6d 20 3d 20 4d 69 6e |.myFreeM|em = Min|
|000003f0| 28 4d 61 78 42 6c 6f 63 | 6b 28 29 2c 20 6d 79 46 |(MaxBloc|k(), myF|
|00000400| 72 65 65 4d 65 6d 29 3b | 0d 09 09 09 09 09 62 72 |reeMem);|......br|
|00000410| 65 61 6b 3b 0d 09 09 09 | 09 63 61 73 65 20 27 51 |eak;....|.case 'Q|
|00000420| 27 3a 09 09 09 09 09 09 | 2f 2f 09 71 75 69 74 0d |':......|//.quit.|
|00000430| 09 09 09 09 63 61 73 65 | 20 27 71 27 3a 0d 09 09 |....case| 'q':...|
|00000440| 09 09 09 45 78 69 74 54 | 6f 53 68 65 6c 6c 28 29 |...ExitT|oShell()|
|00000450| 3b 0d 09 09 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |;......b|reak;...|
|00000460| 09 09 63 61 73 65 20 27 | 41 27 3a 09 09 09 09 09 |..case '|A':.....|
|00000470| 09 2f 2f 09 53 65 6c 65 | 63 74 20 41 6c 6c 0d 09 |.//.Sele|ct All..|
|00000480| 09 09 09 63 61 73 65 20 | 27 61 27 3a 0d 09 09 09 |...case |'a':....|
|00000490| 09 09 53 65 6c 49 54 65 | 78 74 28 74 68 65 44 69 |..SelITe|xt(theDi|
|000004a0| 61 6c 6f 67 2c 20 28 28 | 44 69 61 6c 6f 67 50 65 |alog, ((|DialogPe|
|000004b0| 65 6b 29 74 68 65 44 69 | 61 6c 6f 67 29 2d 3e 65 |ek)theDi|alog)->e|
|000004c0| 64 69 74 46 69 65 6c 64 | 20 2b 31 2c 20 30 2c 20 |ditField| +1, 0, |
|000004d0| 33 32 37 36 37 29 3b 09 | 2f 2f 09 73 65 6c 65 63 |32767);.|//.selec|
|000004e0| 74 20 61 6c 6c 20 74 68 | 65 20 74 65 78 74 0d 09 |t all th|e text..|
|000004f0| 09 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 09 7d 0d |....brea|k;....}.|
|00000500| 09 09 09 72 65 74 75 72 | 6e 28 30 29 3b 0d 09 09 |...retur|n(0);...|
|00000510| 09 09 09 2f 2a 20 64 6f | 6e 27 74 20 6c 65 74 20 |.../* do|n't let |
|00000520| 75 6e 77 61 6e 74 65 64 | 20 63 6f 6d 6d 61 6e 64 |unwanted| command|
|00000530| 2d 6b 65 79 73 20 69 6e | 74 6f 20 44 69 61 6c 6f |-keys in|to Dialo|
|00000540| 67 53 65 6c 65 63 74 28 | 29 20 2a 2f 0d 09 09 7d |gSelect(|) */...}|
|00000550| 0d 09 09 72 65 74 75 72 | 6e 28 30 29 3b 0d 09 7d |...retur|n(0);..}|
|00000560| 0d 0d 09 69 66 20 28 44 | 69 61 6c 6f 67 53 65 6c |...if (D|ialogSel|
|00000570| 65 63 74 28 20 65 76 70 | 2c 20 26 77 68 69 63 68 |ect( evp|, &which|
|00000580| 44 6c 67 2c 20 26 69 74 | 65 6d 48 69 74 20 29 20 |Dlg, &it|emHit ) |
|00000590| 3d 3d 20 46 41 4c 53 45 | 20 29 0d 09 09 72 65 74 |== FALSE| )...ret|
|000005a0| 75 72 6e 28 30 29 3b 09 | 09 09 09 09 09 09 2f 2f |urn(0);.|......//|
|000005b0| 09 6e 6f 20 65 78 74 72 | 61 20 77 6f 72 6b 20 6e |.no extr|a work n|
|000005c0| 65 65 64 65 64 20 2c 20 | 20 6a 75 73 74 20 72 65 |eeded , | just re|
|000005d0| 74 75 72 6e 0d 0d 09 69 | 66 20 28 20 77 68 69 63 |turn...i|f ( whic|
|000005e0| 68 44 6c 67 20 3d 3d 20 | 74 68 65 44 69 61 6c 6f |hDlg == |theDialo|
|000005f0| 67 20 29 09 09 09 09 2f | 2f 09 70 72 6f 63 65 73 |g )..../|/.proces|
|00000600| 73 20 74 68 65 20 69 6e | 74 65 72 61 63 74 69 6f |s the in|teractio|
|00000610| 6e 0d 09 7b 09 09 0d 09 | 09 73 77 69 74 63 68 20 |n..{....|.switch |
|00000620| 28 20 69 74 65 6d 48 69 | 74 20 29 0d 09 09 7b 0d |( itemHi|t )...{.|
|00000630| 09 09 63 61 73 65 20 6f | 6b 3a 0d 09 09 09 45 78 |..case o|k:....Ex|
|00000640| 69 74 54 6f 53 68 65 6c | 6c 28 29 3b 09 09 09 09 |itToShel|l();....|
|00000650| 09 2f 2f 09 75 73 65 72 | 20 73 61 69 64 20 74 6f |.//.user| said to|
|00000660| 20 22 44 4f 20 49 54 22 | 0d 09 09 09 62 72 65 61 | "DO IT"|....brea|
|00000670| 6b 3b 0d 09 09 63 61 73 | 65 20 64 6c 67 45 4e 43 |k;...cas|e dlgENC|
|00000680| 4f 44 45 52 3a 09 09 09 | 09 09 2f 2f 09 65 6e 63 |ODER:...|..//.enc|
|00000690| 6f 64 65 20 62 75 74 74 | 6f 6e 0d 09 09 09 69 66 |ode butt|on....if|
|000006a0| 20 28 76 61 6c 69 64 61 | 74 65 45 6e 74 72 79 28 | (valida|teEntry(|
|000006b0| 45 4e 43 4f 44 45 29 29 | 0d 09 09 09 09 65 6e 63 |ENCODE))|.....enc|
|000006c0| 6f 64 65 72 28 29 3b 0d | 09 09 09 65 6c 73 65 0d |oder();.|...else.|
|000006d0| 09 09 09 09 53 79 73 42 | 65 65 70 28 33 29 3b 0d |....SysB|eep(3);.|
|000006e0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 63 61 73 65 |...break|;...case|
|000006f0| 20 64 6c 67 44 45 43 4f | 44 45 52 3a 09 09 09 09 | dlgDECO|DER:....|
|00000700| 09 2f 2f 09 64 65 63 6f | 64 65 20 62 75 74 74 6f |.//.deco|de butto|
|00000710| 6e 0d 09 09 09 69 66 20 | 28 76 61 6c 69 64 61 74 |n....if |(validat|
|00000720| 65 45 6e 74 72 79 28 44 | 45 43 4f 44 45 29 29 0d |eEntry(D|ECODE)).|
|00000730| 09 09 09 09 64 65 63 6f | 64 65 72 28 29 3b 0d 09 |....deco|der();..|
|00000740| 09 09 65 6c 73 65 0d 09 | 09 09 09 53 79 73 42 65 |..else..|...SysBe|
|00000750| 65 70 28 33 29 3b 0d 09 | 09 09 62 72 65 61 6b 3b |ep(3);..|..break;|
|00000760| 0d 09 09 7d 09 2f 2a 20 | 65 6e 64 20 6f 66 20 73 |...}./* |end of s|
|00000770| 77 69 74 63 68 20 2a 2f | 0d 09 7d 0d 7d 0d 0d 76 |witch */|..}.}..v|
|00000780| 6f 69 64 20 68 61 6e 64 | 6c 65 64 72 61 67 20 28 |oid hand|ledrag (|
|00000790| 45 76 65 6e 74 52 65 63 | 6f 72 64 20 65 76 2c 20 |EventRec|ord ev, |
|000007a0| 57 69 6e 64 6f 77 50 74 | 72 20 77 29 0d 20 7b 0d |WindowPt|r w). {.|
|000007b0| 09 0d 09 09 52 65 63 74 | 20 72 3b 0d 0d 09 72 20 |....Rect| r;...r |
|000007c0| 3d 20 73 63 72 65 65 6e | 42 69 74 73 2e 62 6f 75 |= screen|Bits.bou|
|000007d0| 6e 64 73 3b 20 0d 20 09 | 72 2e 74 6f 70 20 3d 20 |nds; . .|r.top = |
|000007e0| 72 2e 74 6f 70 20 2b 20 | 4d 42 61 72 48 65 69 67 |r.top + |MBarHeig|
|000007f0| 68 74 3b 20 2f 2a 61 63 | 63 65 73 73 20 61 20 51 |ht; /*ac|cess a Q|
|00000800| 75 69 63 6b 44 72 61 77 | 20 67 6c 6f 62 61 6c 2a |uickDraw| global*|
|00000810| 2f 0d 20 09 72 2e 6c 65 | 66 74 20 3d 20 72 2e 6c |/. .r.le|ft = r.l|
|00000820| 65 66 74 20 2b 20 64 72 | 61 67 73 63 72 65 65 6e |eft + dr|agscreen|
|00000830| 6d 61 72 67 69 6e 3b 20 | 20 0d 20 09 72 2e 72 69 |margin; | . .r.ri|
|00000840| 67 68 74 20 3d 20 72 2e | 72 69 67 68 74 20 2d 20 |ght = r.|right - |
|00000850| 64 72 61 67 73 63 72 65 | 65 6e 6d 61 72 67 69 6e |dragscre|enmargin|
|00000860| 3b 0d 20 20 20 09 72 2e | 62 6f 74 74 6f 6d 20 3d |;. .r.|bottom =|
|00000870| 20 72 2e 62 6f 74 74 6f | 6d 20 2d 20 64 72 61 67 | r.botto|m - drag|
|00000880| 73 63 72 65 65 6e 6d 61 | 72 67 69 6e 3b 0d 20 20 |screenma|rgin;. |
|00000890| 09 44 72 61 67 57 69 6e | 64 6f 77 20 28 77 2c 20 |.DragWin|dow (w, |
|000008a0| 65 76 2e 77 68 65 72 65 | 2c 20 26 72 29 3b 20 20 |ev.where|, &r); |
|000008b0| 20 0d 7d 20 0d 0d 0d 69 | 6e 74 09 68 61 6e 64 6c | .} ...i|nt.handl|
|000008c0| 65 6d 6f 75 73 65 20 28 | 45 76 65 6e 74 52 65 63 |emouse (|EventRec|
|000008d0| 6f 72 64 20 65 76 29 0d | 7b 0d 0d 09 72 65 67 69 |ord ev).|{...regi|
|000008e0| 73 74 65 72 20 73 68 6f | 72 74 20 77 68 69 63 68 |ster sho|rt which|
|000008f0| 50 61 72 74 3b 0d 09 57 | 69 6e 64 6f 77 50 74 72 |Part;..W|indowPtr|
|00000900| 20 77 3b 0d 09 42 6f 6f | 6c 65 61 6e 09 69 73 54 | w;..Boo|lean.isT|
|00000910| 72 75 65 3b 0d 09 0d 20 | 20 09 77 68 69 63 68 50 |rue;... | .whichP|
|00000920| 61 72 74 20 3d 20 46 69 | 6e 64 57 69 6e 64 6f 77 |art = Fi|ndWindow|
|00000930| 20 28 65 76 2e 77 68 65 | 72 65 2c 20 26 77 29 3b | (ev.whe|re, &w);|
|00000940| 0d 09 0d 09 69 66 20 28 | 77 20 21 3d 20 6e 69 6c |....if (|w != nil|
|00000950| 29 20 0d 09 0d 09 09 69 | 66 20 28 77 20 21 3d 20 |) .....i|f (w != |
|00000960| 46 72 6f 6e 74 57 69 6e | 64 6f 77 20 28 29 29 09 |FrontWin|dow ()).|
|00000970| 09 09 20 2f 2a 6a 75 73 | 74 20 6c 69 6b 65 20 61 |.. /*jus|t like a|
|00000980| 6c 6c 20 6f 74 68 65 72 | 20 4d 61 63 20 70 72 6f |ll other| Mac pro|
|00000990| 67 72 61 6d 73 2a 2f 0d | 09 09 7b 0d 09 09 09 53 |grams*/.|..{....S|
|000009a0| 65 6c 65 63 74 57 69 6e | 64 6f 77 20 28 77 29 3b |electWin|dow (w);|
|000009b0| 0d 09 09 09 72 65 74 75 | 72 6e 3b 20 2f 2a 74 68 |....retu|rn; /*th|
|000009c0| 65 20 6d 6f 75 73 65 20 | 63 6c 69 63 6b 20 69 73 |e mouse |click is|
|000009d0| 20 63 6f 6e 73 75 6d 65 | 64 20 62 79 20 74 68 65 | consume|d by the|
|000009e0| 20 62 72 69 6e 67 74 6f | 66 72 6f 6e 74 20 6f 70 | bringto|front op|
|000009f0| 65 72 61 74 69 6f 6e 2a | 2f 0d 09 09 7d 0d 09 0d |eration*|/...}...|
|00000a00| 09 73 77 69 74 63 68 20 | 28 77 68 69 63 68 50 61 |.switch |(whichPa|
|00000a10| 72 74 29 0d 09 7b 0d 09 | 09 63 61 73 65 20 69 6e |rt)..{..|.case in|
|00000a20| 53 79 73 57 69 6e 64 6f | 77 3a 0d 09 09 09 53 79 |SysWindo|w:....Sy|
|00000a30| 73 74 65 6d 43 6c 69 63 | 6b 20 28 26 65 76 2c 20 |stemClic|k (&ev, |
|00000a40| 77 29 3b 20 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |w); ....|break;..|
|00000a50| 09 0d 09 09 63 61 73 65 | 20 69 6e 4d 65 6e 75 42 |....case| inMenuB|
|00000a60| 61 72 3a 0d 09 09 09 72 | 65 74 75 72 6e 28 44 6f |ar:....r|eturn(Do|
|00000a70| 43 6f 6d 6d 61 6e 64 28 | 4d 65 6e 75 53 65 6c 65 |Command(|MenuSele|
|00000a80| 63 74 28 65 76 2e 77 68 | 65 72 65 29 29 29 3b 0d |ct(ev.wh|ere)));.|
|00000a90| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 0d 09 09 |...break|;.......|
|00000aa0| 63 61 73 65 20 69 6e 44 | 72 61 67 3a 0d 09 09 09 |case inD|rag:....|
|00000ab0| 68 61 6e 64 6c 65 64 72 | 61 67 20 28 65 76 2c 20 |handledr|ag (ev, |
|00000ac0| 77 29 3b 0d 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |w);....b|reak;...|
|00000ad0| 09 0d 09 09 63 61 73 65 | 20 69 6e 47 6f 41 77 61 |....case| inGoAwa|
|00000ae0| 79 3a 0d 09 09 09 69 73 | 54 72 75 65 20 3d 20 54 |y:....is|True = T|
|00000af0| 72 61 63 6b 47 6f 41 77 | 61 79 20 28 77 2c 20 65 |rackGoAw|ay (w, e|
|00000b00| 76 2e 77 68 65 72 65 29 | 3b 0d 09 09 09 69 66 20 |v.where)|;....if |
|00000b10| 28 69 73 54 72 75 65 29 | 0d 09 09 09 09 45 78 69 |(isTrue)|.....Exi|
|00000b20| 74 54 6f 53 68 65 6c 6c | 28 29 3b 0d 09 09 09 62 |tToShell|();....b|
|00000b30| 72 65 61 6b 3b 0d 09 09 | 09 0d 09 7d 20 2f 2a 73 |reak;...|...} /*s|
|00000b40| 77 69 74 63 68 2a 2f 0d | 7d 20 2f 2a 68 61 6e 64 |witch*/.|} /*hand|
|00000b50| 6c 65 6d 6f 75 73 65 2a | 2f 0d 0d 0d 0d 69 6e 74 |lemouse*|/....int|
|00000b60| 20 44 6f 43 6f 6d 6d 61 | 6e 64 28 6c 6f 6e 67 20 | DoComma|nd(long |
|00000b70| 6d 52 65 73 75 6c 74 29 | 0d 7b 0d 09 69 6e 74 09 |mResult)|.{..int.|
|00000b80| 09 74 68 65 49 74 65 6d | 3b 0d 09 53 74 72 32 35 |.theItem|;..Str25|
|00000b90| 35 09 6e 61 6d 65 3b 0d | 09 0d 09 74 68 65 49 74 |5.name;.|...theIt|
|00000ba0| 65 6d 20 3d 20 4c 6f 57 | 6f 72 64 28 6d 52 65 73 |em = LoW|ord(mRes|
|00000bb0| 75 6c 74 29 3b 0d 09 73 | 77 69 74 63 68 20 28 48 |ult);..s|witch (H|
|00000bc0| 69 57 6f 72 64 28 6d 52 | 65 73 75 6c 74 29 29 0d |iWord(mR|esult)).|
|00000bd0| 09 7b 0d 09 09 63 61 73 | 65 20 61 70 70 6c 65 49 |.{...cas|e appleI|
|00000be0| 44 3a 0d 09 09 09 47 65 | 74 49 74 65 6d 28 47 65 |D:....Ge|tItem(Ge|
|00000bf0| 74 4d 48 61 6e 64 6c 65 | 28 61 70 70 6c 65 49 44 |tMHandle|(appleID|
|00000c00| 29 2c 20 74 68 65 49 74 | 65 6d 2c 20 26 6e 61 6d |), theIt|em, &nam|
|00000c10| 65 29 3b 0d 09 09 09 69 | 66 20 28 74 68 65 49 74 |e);....i|f (theIt|
|00000c20| 65 6d 20 3d 3d 20 31 29 | 0d 09 09 09 09 41 6c 65 |em == 1)|.....Ale|
|00000c30| 72 74 28 31 32 38 2c 30 | 4c 29 3b 0d 09 09 09 65 |rt(128,0|L);....e|
|00000c40| 6c 73 65 0d 09 09 09 7b | 0d 09 09 09 09 4f 70 65 |lse....{|.....Ope|
|00000c50| 6e 44 65 73 6b 41 63 63 | 28 6e 61 6d 65 29 3b 0d |nDeskAcc|(name);.|
|00000c60| 09 09 09 09 53 65 74 50 | 6f 72 74 28 74 68 65 44 |....SetP|ort(theD|
|00000c70| 69 61 6c 6f 67 29 3b 0d | 09 09 09 7d 0d 09 09 09 |ialog);.|...}....|
|00000c80| 62 72 65 61 6b 3b 0d 0d | 09 09 63 61 73 65 20 66 |break;..|..case f|
|00000c90| 69 6c 65 49 44 3a 20 0d | 09 09 09 45 78 69 74 54 |ileID: .|...ExitT|
|00000ca0| 6f 53 68 65 6c 6c 28 29 | 3b 0d 09 09 09 62 72 65 |oShell()|;....bre|
|00000cb0| 61 6b 3b 0d 0d 09 09 63 | 61 73 65 20 65 64 69 74 |ak;....c|ase edit|
|00000cc0| 49 44 3a 20 0d 09 09 09 | 69 66 20 28 53 79 73 74 |ID: ....|if (Syst|
|00000cd0| 65 6d 45 64 69 74 28 74 | 68 65 49 74 65 6d 2d 31 |emEdit(t|heItem-1|
|00000ce0| 29 20 3d 3d 20 30 29 0d | 09 09 09 7b 0d 09 09 09 |) == 0).|...{....|
|00000cf0| 09 73 77 69 74 63 68 20 | 28 74 68 65 49 74 65 6d |.switch |(theItem|
|00000d00| 29 0d 09 09 09 09 7b 0d | 09 09 09 09 09 63 61 73 |).....{.|.....cas|
|00000d10| 65 20 63 75 74 43 6f 6d | 6d 61 6e 64 3a 0d 09 09 |e cutCom|mand:...|
|00000d20| 09 09 09 09 44 6c 67 43 | 75 74 28 74 68 65 44 69 |....DlgC|ut(theDi|
|00000d30| 61 6c 6f 67 29 3b 0d 09 | 09 09 09 09 09 62 72 65 |alog);..|.....bre|
|00000d40| 61 6b 3b 0d 09 0d 09 09 | 09 09 09 63 61 73 65 20 |ak;.....|...case |
|00000d50| 63 6f 70 79 43 6f 6d 6d | 61 6e 64 3a 0d 09 09 09 |copyComm|and:....|
|00000d60| 09 09 09 53 65 6c 49 54 | 65 78 74 28 74 68 65 44 |...SelIT|ext(theD|
|00000d70| 69 61 6c 6f 67 2c 20 33 | 2c 20 30 2c 20 33 32 37 |ialog, 3|, 0, 327|
|00000d80| 36 37 29 3b 09 2f 2f 09 | 73 65 6c 65 63 74 20 61 |67);.//.|select a|
|00000d90| 6c 6c 20 74 68 65 20 74 | 65 78 74 0d 09 09 09 09 |ll the t|ext.....|
|00000da0| 09 09 44 6c 67 43 6f 70 | 79 28 74 68 65 44 69 61 |..DlgCop|y(theDia|
|00000db0| 6c 6f 67 29 3b 0d 09 09 | 09 09 09 09 5a 65 72 6f |log);...|....Zero|
|00000dc0| 53 63 72 61 70 28 29 3b | 0d 09 09 09 09 09 09 54 |Scrap();|.......T|
|00000dd0| 45 54 6f 53 63 72 61 70 | 28 29 3b 0d 09 09 09 09 |EToScrap|();.....|
|00000de0| 09 09 62 72 65 61 6b 3b | 0d 09 09 0d 09 09 09 09 |..break;|........|
|00000df0| 09 63 61 73 65 20 70 61 | 73 74 65 43 6f 6d 6d 61 |.case pa|steComma|
|00000e00| 6e 64 3a 0d 09 09 09 09 | 09 09 44 6c 67 50 61 73 |nd:.....|..DlgPas|
|00000e10| 74 65 28 74 68 65 44 69 | 61 6c 6f 67 29 3b 0d 09 |te(theDi|alog);..|
|00000e20| 09 09 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 0d 09 |.....bre|ak;.....|
|00000e30| 09 09 09 09 63 61 73 65 | 20 63 6c 65 61 72 43 6f |....case| clearCo|
|00000e40| 6d 6d 61 6e 64 3a 0d 09 | 09 09 09 09 09 44 6c 67 |mmand:..|.....Dlg|
|00000e50| 44 65 6c 65 74 65 28 74 | 68 65 44 69 61 6c 6f 67 |Delete(t|heDialog|
|00000e60| 29 3b 0d 09 09 09 09 09 | 09 62 72 65 61 6b 3b 0d |);......|.break;.|
|00000e70| 09 09 0d 09 09 09 09 09 | 63 61 73 65 20 73 65 6c |........|case sel|
|00000e80| 65 63 74 43 6f 6d 6d 61 | 6e 64 3a 0d 09 09 09 09 |ectComma|nd:.....|
|00000e90| 09 09 53 65 6c 49 54 65 | 78 74 28 74 68 65 44 69 |..SelITe|xt(theDi|
|00000ea0| 61 6c 6f 67 2c 20 33 2c | 20 30 2c 20 33 32 37 36 |alog, 3,| 0, 3276|
|00000eb0| 37 29 3b 09 2f 2f 09 73 | 65 6c 65 63 74 20 61 6c |7);.//.s|elect al|
|00000ec0| 6c 20 74 68 65 20 74 65 | 78 74 0d 09 09 09 09 09 |l the te|xt......|
|00000ed0| 09 62 72 65 61 6b 3b 0d | 09 09 09 09 7d 0d 09 09 |.break;.|....}...|
|00000ee0| 09 7d 0d 09 09 09 62 72 | 65 61 6b 3b 0d 09 7d 0d |.}....br|eak;..}.|
|00000ef0| 09 48 69 6c 69 74 65 4d | 65 6e 75 28 30 29 3b 0d |.HiliteM|enu(0);.|
|00000f00| 09 72 65 74 75 72 6e 28 | 31 29 3b 0d 7d 0d 00 00 |.return(|1);.}...|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 46 |........|.......F|
|00000f90| 00 00 12 52 65 67 65 6e | 63 79 20 53 63 72 69 70 |...Regen|cy Scrip|
|00000fa0| 74 20 46 4c 46 07 52 65 | 67 75 6c 61 72 00 00 00 |t FLF.Re|gular...|
|00000fb0| 09 64 6f 53 74 75 66 66 | 2e 63 02 00 00 00 50 61 |.doStuff|.c....Pa|
|00000fc0| 72 74 53 49 54 78 00 00 | 00 00 00 00 00 00 00 01 |rtSITx..|........|
|00000fd0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 a9 7e a4 23 00 00 | 00 00 00 00 01 5c 00 08 |...~.#..|.....\..|
|00001000| 52 69 74 7a 20 46 4c 46 | 06 49 74 61 6c 69 63 00 |Ritz FLF|.Italic.|
|00001010| 00 00 1f 00 00 00 37 00 | 00 00 00 00 00 0c 52 69 |......7.|......Ri|
|00001020| 74 7a 20 46 4c 46 43 6f | 6e 64 07 52 65 67 75 6c |tz FLFCo|nd.Regul|
|00001030| 61 72 00 00 00 1c 00 00 | 00 37 00 00 00 00 00 00 |ar......|.7......|
|00001040| 09 52 6f 63 6b 6f 20 46 | 4c 46 07 52 65 67 75 6c |.Rocko F|LF.Regul|
|00001050| 61 72 00 00 00 19 01 00 | 00 4b 00 00 00 00 00 00 |ar......|.K......|
|00001060| 09 52 6f 63 6b 6f 20 46 | 4c 46 04 42 6f 6c 64 00 |.Rocko F|LF.Bold.|
|00001070| 00 00 22 00 00 00 37 00 | 00 00 00 00 00 0f 52 6f |.."...7.|......Ro|
|00001080| 00 00 00 04 00 06 00 04 | 00 00 00 0a 00 09 06 47 |........|.......G|
|00001090| 65 6e 65 76 61 20 00 00 | 01 00 00 00 01 16 00 00 |eneva ..|........|
|000010a0| 00 16 00 00 00 46 00 5d | f3 50 1e 1e 00 00 00 1c |.....F.]|.P......|
|000010b0| 00 46 00 01 45 54 41 42 | 00 00 00 12 45 46 4e 54 |.F..ETAB|....EFNT|
|000010c0| 00 00 00 1e 03 ec ff ff | 00 00 00 00 00 5d f1 cc |........|.....]..|
|000010d0| 03 eb ff ff 00 00 00 08 | 00 5d f1 d8 00 00 00 00 |........|.]......|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+